/**
 * @author cj 
 * @timer 23-1-6
 */

import { CHANGE_USER_URL, DELETE_USER_URL, GET_USER_LIST } from "@/config/urls.conf";
import ajax from "./ajax";

// 获取用户列表
export function getUserListApi(params) {
    return ajax({
        url: GET_USER_LIST,
        params
    })
}
// 修改用户是否可用
export function userAddApi(data){
    return ajax({
        url: CHANGE_USER_URL,
        method: 'POST',
        data
    })
}

// 冻结用户
export function userDelApi(id){
    return ajax({
        url: DELETE_USER_URL + id,
        method: 'DELETE'
    })
}